package com.qingyun.user.feign;


import com.qingyun.apis.user.IUserClient;
import com.qingyun.model.common.dtos.R;
import com.qingyun.user.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserClient implements IUserClient {

    @Resource
    private UserService userService;

    @Override
    @GetMapping("/information/{id}")
    public R information(@PathVariable("id")  Long id){
        return userService.info(id);
    }
}
